//
//  HJConst.swift
//  sinaWeibo
//
//  Created by hjun on 16/3/23.
//  Copyright © 2016年 hjun. All rights reserved.
//

import UIKit

///自定义Log 需要在build settings 里面搜索 preprocessor Macros (OC的配置方式), 在搜索 swift flag 配置debug "-D" "DEBUG"

func HJPrint(file: String = __FILE__, line: Int = __LINE__, function: String = __FUNCTION__, msg:Any){

#if DEBUG
  print("\((file as NSString).lastPathComponent)[\(line)行], \(function): \(msg)")
    #endif
}

//MARK: -授权登陆相关
///申请应用时分配的APPkey
let client_id = "2600678155"

let client_secret = "31c8ff797f1811fbbbd8182974de2551"


///授权回调地址
let redirect_uri = "http://www.baidu.com/"


///baseUrl
let HJBaseUrl = NSURL(string: "https://api.weibo.com/")

///新特性动画时间

let HJDefaultDuration: NSTimeInterval = 0.25

///新特性界面数量

let HJNewFeaturePageCount = 4


/// 首页内容中控件的间隙
let HJStatusMagin: CGFloat = 8

///微博cell的相关设置

let HJBottomVieFontSize: CGFloat = 11

//MARK: 微博cell的配图相关
///配图间距

let HJPictureViewMargin: CGFloat = 10

///配图的最大列数

let HJPictureViewMaxColumn = 3

///配图Cell的大小

let HJPictureViewCellWH = (UIScreen.width - 2 * HJStatusMagin - CGFloat(HJPictureViewMaxColumn - 1) * HJPictureViewMargin) / CGFloat(HJPictureViewMaxColumn)
///微博内容文字大小

let HJPictureViewFontSize: CGFloat = 14


